package xcmg.device.dao.mapper.agent;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import xcmg.device.dao.entity.agent.AgentAllotDetailDO;
import xcmg.device.service.vo.agent.AgentAllotDetailVO;

import java.util.List;

@Mapper
public interface AgentAllotDetailMapper {
    int deleteByPrimaryKey(String id);

    int insert(AgentAllotDetailDO record);

    AgentAllotDetailDO selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(AgentAllotDetailDO record);

    int removeByAllotOrderList(@Param("allotIdList") List<String> allotIdList);

    List<AgentAllotDetailDO> findByAllotOrderList(@Param("allotIdList") List<String> allotIdList);

    List<AgentAllotDetailDO> list(AgentAllotDetailVO condition);

    List<AgentAllotDetailDO> listByBillNo(@Param("billNo") String billNo, @Param("orgId") String orgId);

    int updateInStatus(@Param("status") int status, @Param("billNo") String billNo,@Param("materialsNo") String materialsNo);

    int updateOutStatus(@Param("status") int status, @Param("billNo") String billNo,@Param("materialsNo") String materialsNo);
}